package com.ibm.service;

import com.ibm.dao.OrderDAO;
import com.ibm.entity.Order;

import java.util.ArrayList;
import java.util.List;

public class OrderService {
    private OrderDAO orderDAO=new OrderDAO();

    public List<Order> ListOrder()
    {
        List<Order> orderList= orderDAO.SelectOrders();
        return orderList;
    }
    public boolean DeleteOrder(int orderId)
    {
        int i= orderDAO.deleteOrder(orderId);
        return i>0;
    }


}
